# %% env
import os

os.environ["OPENAI_API_KEY"] = ''
# %% use env
from dotenv import load_dotenv

load_dotenv()
# %% import embeddings
# ImportError: Could not import tiktoken python package.
# This is needed in order to for OpenAIEmbeddings. Please install it with `pip install tiktoken`.
from langchain_community.embeddings import OpenAIEmbeddings

# %% Initialize the OpenAlEmbeddings object
embeddings = OpenAIEmbeddings()

# %%
our_txt = 'hey buddy'
txt_embedding = embeddings.embed_query(our_txt)
print(f'Our embedding is length {txt_embedding}')
